package sunyu.service;

import sunyu.pojo.ShiroUser;

import java.util.List;
import java.util.Map;

/**
 * @author 孙宇
 */
public interface UserService {

    void insertUserAndRole(ShiroUser record, List<String> roleIds);

    void updateUserAndRole(ShiroUser record, List<String> roleIds);

    List<String> selectRoleIds(String userId);

    List<ShiroUser> select(Map params);

    int deleteByPrimaryKey(String id);

    int insert(ShiroUser record);

    int insertSelective(ShiroUser record);

    ShiroUser selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(ShiroUser record);

    int updateByPrimaryKey(ShiroUser record);
}
